<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>分页、表格</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="css/index.css">
    <!--公用JQ组件-->
    <script src="../public/jquery.min.js"></script>
</head>
<body>
    <!--内容左侧开始-->
    <main>
        <div class="layui-col-md12 mainList">
            <div class="layui-col-md12 head">
                <div class="layui-col-md1 add" id="add">
                    <button type="button" class="layui-btn layui-btn-primary">添加</button>
                </div>

                <div class="layui-col-md2 search">
                    <div class="layui-col-md12">
                        <input type="text"  name="text" id="SearVal"  value ="" placeholder="分组名称" autocomplete="off" class="layui-input">
                        <div class="searchIcon" onclick="Search()">
                            <i class="layui-icon layui-icon-search"></i>
                        </div>
                    </div>
                </div>
            </div>
            <article>
                <table class="layui-table" lay-skin="line">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>分组名称</th>
                        <th>经度</th>
                        <th>维度</th>
                        <th style="width: 5%">编辑</th>
                        <td style="width: 5%">删除</td>
                    </tr>
                    </thead>
                    <tbody id="ListData"></tbody>
                </table>
                <div id="demo20"></div>
            </article>
        </div>
    </main>
    <!--内容左侧结束-->
    <script type="text/javascript" src='//webapi.amap.com/maps?v=1.3&key=160cab8ad6c50752175d76e61ef92c50'></script>
    <!-- UI组件库 1.0 -->
    <script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
    <!--添加设备-->
    <div id="addSheBei">
        <div class="center">
            <div class="mapPack">
                <form class="layui-form layui-form-pane"  id="mapFrom" action="">
                    <!--经度-->
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i class="layui-icon layui-icon-senior"></i> 经度</label>
                        <div class="layui-input-block">
                            <input type="text" readonly="true" i.
                                   d="getLng" name="jindu" autocomplete="off" placeholder="请输入经度" class="layui-input">
                        </div>
                    </div>
                    <!--维度-->
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i class="layui-icon layui-icon-senior"></i> 维度</label>
                        <div class="layui-input-block">
                            <input type="text" name="weidu" readonly="true" id="getLat"   autocomplete="off" placeholder="请输入维度" class="layui-input">
                        </div>
                    </div>
                    <!--地图选择经纬度-->
                    <div id="container" class="map" tabindex="0">
                        <div id="panel" class="scrollbar1">
                            <div class="layui-form-item" id="searchBar">
                                <div class="layui-input-block searchBarinput">
                                    <input type="text" id="searchInput"   autocomplete="off" placeholder="搜索你的位置" class="layui-input">
                                </div>
                            </div>
                            <div id="searchResults"></div>
                        </div>
                    </div>
                    <!--按钮提交 mapSubmit-->
                    <div class="layui-form-item mapSubmit">
                        <button class="layui-btn" id="addGroup" type="button" lay-filter="demo1">立即提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="/layui/layui.js"></script>
<script src="js/index.js"></script>
</body>
</html>
